const {
    Mysql
} = require('../tools/utils');
module.exports = async ctx => {
    
    let {
        vid,
        uid
    } = ctx.query;
    let sql = `UPDATE video SET views = views+1 WHERE vid = ${vid}`;
    Mysql(sql)
    ctx.state.data = {
        code: '001'
    }
};